package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.PushHistoryEntity;
import org.springframework.beans.BeanUtils;

public class PushHistoryDto {
    private Integer pushHistoryId;
    private Integer orgId;
    private String pushContent;
    private Integer actorId;
    private String pushTime;
    private String deviceId;
    private Integer pushType;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public PushHistoryDto() {
    }

    public PushHistoryDto(Integer orgId, Integer actorId, String pushContent, String pushTime) {
        this.orgId = orgId;
        this.actorId = actorId;
        this.pushContent = pushContent;
        this.pushTime = pushTime;
    }

    public PushHistoryDto(Integer orgId, Integer actorId, String pushContent, String pushTime,Integer pushType) {
        this.orgId = orgId;
        this.actorId = actorId;
        this.pushContent = pushContent;
        this.pushTime = pushTime;
        this.pushType = pushType;
    }

    public Integer getPushType() {
        return pushType;
    }

    public void setPushType(Integer pushType) {
        this.pushType = pushType;
    }

    public Integer getPushHistoryId() {
        return pushHistoryId;
    }

    public void setPushHistoryId(Integer pushHistoryId) {
        this.pushHistoryId = pushHistoryId;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getPushContent() {
        return pushContent;
    }

    public void setPushContent(String pushContent) {
        this.pushContent = pushContent;
    }

    public Integer getActorId() {
        return actorId;
    }

    public void setActorId(Integer actorId) {
        this.actorId = actorId;
    }

    public String getPushTime() {
        return pushTime;
    }

    public void setPushTime(String pushTime) {
        this.pushTime = pushTime;
    }

    public PushHistoryEntity toBean() {
        PushHistoryEntity pushHistoryEntity = new PushHistoryEntity();
        BeanUtils.copyProperties(this, pushHistoryEntity);
        return pushHistoryEntity;
    }

}
